{include file="header.html"}
<script>
$(function(){
	$('#acategory_form').validate({
        errorPlacement: function(error, element){
            //$(element).next('.noerror').hide();          
            //$(element).after(error);
        },
        success       : function(element){
        	 $(element).next('.noerror').show();  
        	 $(element).remove();
        	
        },
        rules : {
        	e_handle_person : {
                required : true
            },
            e_handle_date : {
                required : true
            }
        }
    });
});
</script>
<div id="rightTop">
	<p>异常</p>
	<ul class="subnav">
		<li><a class="btn1" href="index.php?app=exception">{$lang.manage}</a>
		</li>
		<li>
			<!-- {if $acategory.cate_id} --> <a class="btn1"
			href="index.php?app=waybill&amp;act=add">{$lang.add}</a> <!-- {else} -->
			<span>详情</span> <!-- {/if} -->
		</li>
	</ul>
</div>



<div class="info">
	<form method="post" enctype="multipart/form-data" id="acategory_form">
	<div class="jui-cut-label fn-mt25">
	        <div class="jui-message-bar">异常基本信息</div>
	    </div>
		<table class="infoTable">
		 
			<tr>
				<th  class="paddingT15">提报人:
				</th>
				<td class="paddingT15">{$waybill.user_name}</td>
             	<th class="paddingT15">{$lang.e_op_date}:</th>
             	<td class="paddingT15">{$waybill.e_op_date|date:Y-m-d H:i}
             	</td>
         </tr>
         <tr>
				<th  class="paddingT15">{$lang.e_type}:
				</th>
				<td class="paddingT15">{$waybill.e_type}</td>
             	<th class="paddingT15">{$lang.e_bill_code}:</th>
             	<td class="paddingT15">{$waybill.e_bill_code}
             	</td>
         </tr>
          <tr>
				<th  class="paddingT15">{$lang.e_address}:
				</th>
				<td class="paddingT15">{$waybill.e_address}</td>
             	<th class="paddingT15">{$lang.e_date}:</th>
             	<td class="paddingT15">{$waybill.e_date}
             	</td>
         </tr>
          <tr>
				<th  class="paddingT15">{$lang.e_content}:
				</th>
				<td class="paddingT15" colspan="3">{$waybill.e_content|default:-}</td>
         </tr>
<!--          {if $waybill.e_voice_note} -->
          <tr>
				<th  class="paddingT15">语音备注:
				</th>
				<td class="paddingT15" colspan="3"><audio controls="controls"> <source
						src="/{$waybill.e_voice_note}" type="audio/mpeg">

					你的浏览器太老了，请更新否则没法听语音 </audio></td>
         </tr>
<!--          {/if} -->
          <tr>
				<th  class="paddingT15">{$lang.e_text_note}:
				</th>
				<td class="paddingT15" colspan="3">{$waybill.e_text_note|default:-}</td>
             	</td>
         </tr>
         </table>
         <div class="jui-cut-label fn-mt25">
	        <div class="jui-message-bar">异常处理信息</div>
	    </div>
	    <table class="infoTable">
		 
			<tr>
				<th  class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>处理人:
				</th>
				<td class="paddingT15">
				{if $waybill.e_staus!='已处理'}
				<input class="infoTableInput2" id="e_handle_person" type="text"
					name="e_handle_person" value="" />
					</td>
<!-- 					{else} -->
					<span style="font-size: 15px;">{$waybill.e_handle_person|default:-}</span>
<!-- 				{/if} -->
             	<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>{$lang.e_handle_date}:</th>
             	<td class="paddingT15">
             	{if $waybill.e_staus!='已处理'}
             	<input class="infoTableInput2" id="e_handle_date" type="text"
					name="e_handle_date" value="" />
					 <script>
					$('#e_handle_date').datetimepicker({changeMonth: true,changeYear: true});
					</script>
					{else}
					<span style="font-size: 15px;">{if $waybill.e_handle_date}{$waybill.e_handle_date|date:Y-m-d H:i}{else}{/if}</span>
					{/if}
             	</td>
         </tr>
          <tr>
				<th  class="paddingT15">处理意见:
				</th>
				<td class="paddingT15" colspan="3">
				{if $waybill.e_staus!='已处理'}
				<textarea style="width: 312px;" name="e_handle_note"></textarea>
				{else}
				<span style="font-size: 15px;">{$waybill.e_handle_note|default:-}</span>
				{/if}
				</td>
         </tr>
<!--          {if $waybill.e_staus!='已处理'} -->
         <tr>
				<th></th>
				<td class="ptb20"><input class="formbtn" type="submit"
					name="Submit" value="{$lang.submit}" /> </td>
			</tr>
<!-- 			{/if} -->
         </table>
	</form>
	<div class="jui-cut-label fn-mt25">
	        <div class="jui-message-bar">异常附件</div>
	    </div>
	      <table class="infoTable">
<!-- 			{foreach from=$exattr item=e} -->
		 
			<tr>
			   <!-- {if $e.ea_type==0} -->
             	<th  class="paddingT15">异常照片:</th>
             	<td class="paddingT15"> <a href="/{$e.ea_content}" target="_blank">
				<img src="/{$e.ea_content}"  width="80" height="80"></a>
				</td>                  
<!--                  {else} -->
			  
			  <th  class="paddingT15">异常语音:</th>
				<td  class="paddingT15"><audio controls="controls"> <source
						src="/{$e.ea_content}" type="audio/mpeg">

					你的浏览器太老了，请更新否则没法听语音 </audio>
			  </td>
                <!-- {/if} -->
			</tr>
			
<!-- 			{/foreach} -->
			</table>
</div>

{include file="footer.html"}
